import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
/*
*   监听其对象状态的变化
* */
public class listenerDemo01 implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("contextInitialized");
    }
    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("contextDestroyed");
    }
}
